package com.dcy.znoa.service.estate;

import com.aliyuncs.exceptions.ClientException;
import com.baomidou.mybatisplus.service.IService;
import com.dcy.znoa.common.exception.BusinessException;
import com.dcy.znoa.common.util.pojo.JsonForList;
import com.dcy.znoa.controller.estate.model.outnote.SelectEstateOutnoteModel;
import com.dcy.znoa.controller.estate.model.outnote.UpdateEstateOutnoteModel;
import com.dcy.znoa.domain.estate.EstateOutnote;

import java.lang.reflect.InvocationTargetException;

/**
 * <p>
 * 物业出门条 服务类
 * </p>
 *
 * @author cook
 * @since 2018-05-21
 */
public interface EstateOutnoteService extends IService<EstateOutnote> {

    JsonForList selectList(SelectEstateOutnoteModel model) throws InvocationTargetException, IllegalAccessException;

    boolean add(EstateOutnote cp) throws BusinessException, InvocationTargetException, IllegalAccessException, ClientException;

    boolean update(UpdateEstateOutnoteModel model) throws BusinessException, InvocationTargetException, IllegalAccessException, ClientException;

    EstateOutnote selectByEsserId(Long esonId);
}
